﻿function BindUserList(pSearchCriteria, pRadGridObject) {
    Landscape.AdministrativeActions.GetUsersByPage(0, 10, function (resut, e) {
        pRadGridObject.get_masterTableView().set_dataSource(result);
        pRadGridObject.get_masterTableView().dataBind();
    }, function (result, e) { N_NotifyMessage('Error !!!', result.get_message(), 2); });

    Landscape.AdministrativeActions.GetUsersCount(function (result, e) {
        pRadGridObject.get_masterTableView().set_virtualItemCount(result);
    }, function (result, e) { N_NotifyMessage('Error !!!', result.get_message(), 2); });
}